<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SmartCarInformationSystem: include/MapFunc.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SmartCarInformationSystem
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('MapFunc_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">MapFunc.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &lt;unordered_map&gt;</code><br />
<code>#include &quot;<a class="el" href="MapFunc_8inl.html">../src/utils/MapFunc.inl</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
MapFunc.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="MapFunc_8h__incl.png" border="0" usemap="#ainclude_2MapFunc_8h" alt=""/></div>
<map name="ainclude_2MapFunc_8h" id="ainclude_2MapFunc_8h">
<area shape="rect" title=" " alt="" coords="163,5,306,32"/>
<area shape="rect" title=" " alt="" coords="5,80,64,107"/>
<area shape="rect" title=" " alt="" coords="89,80,213,107"/>
<area shape="rect" href="MapFunc_8inl.html" title=" " alt="" coords="237,80,403,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="MapFunc_8h__dep__incl.png" border="0" usemap="#ainclude_2MapFunc_8hdep" alt=""/></div>
<map name="ainclude_2MapFunc_8hdep" id="ainclude_2MapFunc_8hdep">
<area shape="rect" title=" " alt="" coords="1178,5,1321,32"/>
<area shape="rect" href="CarController_8h.html" title=" " alt="" coords="276,453,447,480"/>
<area shape="rect" href="CompareController_8h.html" title=" " alt="" coords="473,528,679,555"/>
<area shape="rect" href="Component_8h.html" title=" " alt="" coords="939,155,1099,181"/>
<area shape="rect" href="SmartCar_8h.html" title=" " alt="" coords="594,379,739,405"/>
<area shape="rect" href="IdManager_8h.html" title=" " alt="" coords="1238,80,1391,107"/>
<area shape="rect" href="StudentController_8h.html" title=" " alt="" coords="1489,453,1687,480"/>
<area shape="rect" href="MapFunc_8inl.html" title=" " alt="" coords="1676,80,1831,107"/>
<area shape="rect" href="ManageSmartCar_8h.html" title=" " alt="" coords="948,528,1145,555"/>
<area shape="rect" href="ShowInfo_8h.html" title=" " alt="" coords="347,603,493,629"/>
<area shape="rect" href="CarController_8cpp.html" title=" " alt="" coords="169,528,391,555"/>
<area shape="rect" href="LaserTest_8cpp.html" title=" " alt="" coords="5,528,144,555"/>
<area shape="rect" href="MainServer_8h.html" title=" " alt="" coords="1235,677,1394,704"/>
<area shape="rect" href="ManageCompare_8h.html" title=" " alt="" coords="1055,603,1251,629"/>
<area shape="rect" href="ManageSmartCar_8cpp.html" title=" " alt="" coords="801,603,1031,629"/>
<area shape="rect" href="MainServer_8cpp.html" title=" " alt="" coords="1242,752,1387,779"/>
<area shape="rect" href="ManageCompare_8cpp.html" title=" " alt="" coords="983,677,1211,704"/>
<area shape="rect" href="ShowInfo_8cpp.html" title=" " alt="" coords="331,677,509,704"/>
<area shape="rect" href="CompareController_8cpp.html" title=" " alt="" coords="517,603,777,629"/>
<area shape="rect" href="Chassis_8h.html" title=" " alt="" coords="846,229,981,256"/>
<area shape="rect" href="TemplateCenter_8h.html" title=" " alt="" coords="833,304,1020,331"/>
<area shape="rect" href="LaserRadar_8h.html" title=" " alt="" coords="1056,229,1213,256"/>
<area shape="rect" href="Component_8cpp.html" title=" " alt="" coords="637,229,822,256"/>
<area shape="rect" href="Chassis_8cpp.html" title=" " alt="" coords="623,304,809,331"/>
<area shape="rect" href="TemplateCenter_8cpp.html" title=" " alt="" coords="823,379,1030,405"/>
<area shape="rect" href="Compare_8h.html" title=" " alt="" coords="716,453,860,480"/>
<area shape="rect" href="SmartCar_8cpp.html" title=" " alt="" coords="521,453,692,480"/>
<area shape="rect" href="Compare_8cpp.html" title=" " alt="" coords="703,528,873,555"/>
<area shape="rect" href="LaserRadar_8cpp.html" title=" " alt="" coords="1045,304,1251,331"/>
<area shape="rect" href="IdManager_8cpp.html" title=" " alt="" coords="1378,155,1550,181"/>
<area shape="rect" href="ManageStudent_8h.html" title=" " alt="" coords="1652,528,1839,555"/>
<area shape="rect" href="StudentController_8cpp.html" title=" " alt="" coords="1377,528,1628,555"/>
<area shape="rect" href="ManageStudent_8cpp.html" title=" " alt="" coords="1636,603,1855,629"/>
</map>
</div>
</div>
<p><a href="MapFunc_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a389aca75d2b0801a83c6fb091f4c2a90"><td class="memTemplParams" colspan="2">template&lt;typename V &gt; </td></tr>
<tr class="memitem:a389aca75d2b0801a83c6fb091f4c2a90"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="MapFunc_8h.html#a389aca75d2b0801a83c6fb091f4c2a90">clearMap</a> (std::unordered_map&lt; std::string, V &gt; &amp;map)</td></tr>
<tr class="memdesc:a389aca75d2b0801a83c6fb091f4c2a90"><td class="mdescLeft">&#160;</td><td class="mdescRight">清理Map中所有元素的内存占用，并清空Map。  <a href="MapFunc_8h.html#a389aca75d2b0801a83c6fb091f4c2a90">更多...</a><br /></td></tr>
<tr class="separator:a389aca75d2b0801a83c6fb091f4c2a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a389aca75d2b0801a83c6fb091f4c2a90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a389aca75d2b0801a83c6fb091f4c2a90">&#9670;&nbsp;</a></span>clearMap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename V &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void clearMap </td>
          <td>(</td>
          <td class="paramtype">std::unordered_map&lt; std::string, V &gt; &amp;&#160;</td>
          <td class="paramname"><em>map</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>清理Map中所有元素的内存占用，并清空Map。 </p>
<p>清空Map </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">std::unordered_map&lt;std::string,V&gt;</td><td>需要清空的Map </td></tr>
  </table>
  </dd>
</dl>

<p class="reference">被这些函数引用 <a class="el" href="classCarController.html#a7b8b7a064923a320737def907f5157f0">CarController::~CarController()</a>, <a class="el" href="classCompareController.html#acc253b55d35b0cb6e134092fc8f29ce7">CompareController::~CompareController()</a>, <a class="el" href="classComponent.html#ab8378fa275af98e568a7e91d33d867af">Component::~Component()</a>, <a class="el" href="classIdManager.html#a5bcf6f8c81ae16380c620515bdce333e">IdManager::~IdManager()</a>, <a class="el" href="classSmartCar.html#ad2c16b8d7b34569935cbfa2594a5de63">SmartCar::~SmartCar()</a> , 以及 <a class="el" href="classStudentController.html#aa9348a3b71dfa1395d795e61c25953ab">StudentController::~StudentController()</a>.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="MapFunc_8h_a389aca75d2b0801a83c6fb091f4c2a90_icgraph.png" border="0" usemap="#aMapFunc_8h_a389aca75d2b0801a83c6fb091f4c2a90_icgraph" alt=""/></div>
<map name="aMapFunc_8h_a389aca75d2b0801a83c6fb091f4c2a90_icgraph" id="aMapFunc_8h_a389aca75d2b0801a83c6fb091f4c2a90_icgraph">
<area shape="rect" title="清理Map中所有元素的内存占用，并清空Map。" alt="" coords="267,148,349,175"/>
<area shape="rect" href="classCarController.html#a7b8b7a064923a320737def907f5157f0" title=" " alt="" coords="5,5,219,32"/>
<area shape="rect" href="classCompareController.html#acc253b55d35b0cb6e134092fc8f29ce7" title=" " alt="" coords="34,57,190,98"/>
<area shape="rect" href="classComponent.html#ab8378fa275af98e568a7e91d33d867af" title=" " alt="" coords="17,123,207,149"/>
<area shape="rect" href="classIdManager.html#a5bcf6f8c81ae16380c620515bdce333e" title=" " alt="" coords="23,173,201,200"/>
<area shape="rect" href="classSmartCar.html#ad2c16b8d7b34569935cbfa2594a5de63" title=" " alt="" coords="31,224,193,251"/>
<area shape="rect" href="classStudentController.html#aa9348a3b71dfa1395d795e61c25953ab" title=" " alt="" coords="39,275,185,317"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="MapFunc_8h.html">MapFunc.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
